<div class="cart list">
  <h2>Cart</h2>

  <!--<%= link_to("Add New Produce", {:action => 'new'}, :class => 'action new') %>-->
  
  <table class="listing" sumary="Cart list">
    <tr class="header">
		<th>&nbsp;</th>
		<th>Name</th>
		<th>Time</th>
		<th>Available</th>
		<th>Buy</th>
		<th>Price</th>
	</tr>
	<% @carts.each do |cart| %>
	<tr>
		<td><%= cart.name %></td>
		<td><%= cart.time %></td>
		<td class="center"><%= cart.available %></td>
		<td class="center"><%= cart.buy %></td>
		<td class="center"><%= cart.price %></td>
		<td class="actions">
			<%= link_to("Show", {:action => 'show', :id => subject.id}, :class => 'action show') %>
			<%= link_to("Delete", '#', :class => 'action delete') %>
			<%= link_to("Submit", '#', :class => 'action submit') %>
		</td>
	</tr>
	<% end %>
  </table>
</div>